package com.tnr.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Employee {
  private Integer e_id;
  private String e_name;
  private String e_sex;
  private Double e_sal;
  private Date e_date;

    public Integer getE_id() {
        return e_id;
    }

    public void setE_id(Integer e_id) {
        this.e_id = e_id;
    }

    public String getE_name() {
        return e_name;
    }

    public void setE_name(String e_name) {
        this.e_name = e_name;
    }

    public String getE_sex() {
        return e_sex;
    }

    public void setE_sex(String e_sex) {
        this.e_sex = e_sex;
    }

    public Double getE_sal() {
        return e_sal;
    }

    public void setE_sal(Double e_sal) {
        this.e_sal = e_sal;
    }

    public Date getE_date() {
        return e_date;
    }

    public void setE_date(Date e_date) {

        this.e_date = e_date;
    }
    public String getE_date_str() {
        if(this.e_date!=null) {
            return new SimpleDateFormat("yyyy-MM-dd").format(e_date);
        }
        return null;
    }
}
